<div class="page-header">
    <h5 class="content-title"><%= __('marketing.activity') %></h5>
    <div class="pull-left">
        <ul class="fl">
            <li>
                <button class="btn btn-block btn-info newAccount"><i class="fui-plus-circle icon-menu"></i></i>
                    <span><%= __('marketing.addActivity') %></span>
                </button>
            </li>
        </ul>
    </div>
</div>
<div class="queryCondition">
    <form class="query-form">
        <div class="row">
            <div class="col-md-4">
                <label><%= __('marketing.activityName') %>：</label>
                <input type="text" name="name_like" placeholder="<%= __('market.fuzzyQueryByActivity') %>">
            </div>
            <!--<div class="col-md-4">
                <label>门店名称：</label>
                <input type="text" name="customers_id_obj_in_ae" placeholder="门店模糊查询">
            </div>-->
        </div>
        <div class="row">
            <div class="col-md-5">
                <label style="float: left;"><%= __('marketing.startingTime') %>：</label>
                <ul class="list-inline" style="float: left;margin-bottom: auto;">
                    <li>
                        <div class="input-group date dolphin_date_picker" style="width: 160px;">
                            <input type="text" class="form-control" name="startDate_gt"  id="startDateGt">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-th"></i>
                            </span>
                        </div>
                    </li>
                    <li>
                        <div class="input-group date dolphin_date_picker" style="width: 160px;">
                            <input type="text" class="form-control" name="startDate_le"  id="startDateLe">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-th"></i>
                            </span>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="col-md-5">
                <label style="float: left;"><%= __('marketing.endingTime') %>：</label>
                <ul class="list-inline" style="float: left;margin-bottom: auto;">
                    <li>
                        <div class="input-group date dolphin_date_picker" style="width: 160px;">
                            <input type="text" class="form-control" name="endDate_gt"  id="endDateGt">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-th"></i>
                            </span>
                        </div>
                    </li>
                    <li>
                        <div class="input-group date dolphin_date_picker" style="width: 160px;">
                            <input type="text" class="form-control" name="endDate_le"  id="endDateLe">
                            <span class="input-group-addon">
                                <i class="glyphicon glyphicon-th"></i>
                            </span>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="row">
            <div class="col-md-2">
                <button type="button" class="btn btn-sm btn-inverse btn-query"><%= __('account.search') %></button>
            </div>
        </div>
    </form>
</div>


<div class="dolphin-col-24 main" id="myContent">
    <div class="panel panel-primary box">
        <div class="panel-heading box-title">
            <h3 class="panel-title">
                <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                <%= __('market.activitiesList') %>
            </h3>
            <div class="actions">
                <a class="btn btn-mini content-refresh" href="#">
                    <i class="fa fa-refresh"></i>
                </a>
            </div>
        </div>
        <div id="marketList" class="box-content"></div>
    </div>
</div>

<div class="modal" id="market_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title"><%= __('market.activityMaintanence') %></span>
            </div>
            <div class="modal-body">
                <div class="tab-pane">
                    <form class="form-horizontal edit-form">
                        <input type="hidden" class="form-control" name="id">
                        <!--<input type="hidden" class="form-control" id="customerId" name="customer.id">-->
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('marketing.activityName') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="name" type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('marketing.activityCode') %></label>
                            <div class="col-md-6">
                                <input class="form-control" name="code" type="text" dol-validate="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('store.name') %></label>
                            <div class="col-md-6">
                                <div class="input-group">
                                    <select id="shop_select"  style="width: 268.89px;" name="cusIds"
                                            class="shop_array js-example-basic-multiple" multiple="multiple"></select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('marketing.startingTime') %></label>
                            <div class="col-md-6">
                                <div class="input-group date dolphin_date_picker">
                                    <input type="text" class="form-control" name="startDate" id="startDate">
                                    <span class="input-group-addon">
                                        <i class="glyphicon glyphicon-th"></i>
                                        </span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-offset-1 col-md-2 control-label"><%= __('marketing.endingTime') %></label>
                            <div class="col-md-6">
                                <div class="input-group date dolphin_date_picker">
                                    <input type="text" class="form-control" name="endDate" id="endDate">
                                    <span class="input-group-addon">
                                        <i class="glyphicon glyphicon-th"></i>
                                        </span>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<script src="<%= global.config.publicPath %>/bootstrap/bootstrap-suggest.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/<%= path %>.js"></script>